//Activity Principal.

package br.com.android;

import android.os.Bundle;
import android.content.Intent;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.view.Window;
import android.widget.Button;

public class WorldCup extends Activity {

	
	Button btClassificacao,btTabelas,btArtilheiros; 
	
 	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.main);
       
        
        //Criacao e Chamada da Tela de "Classificacao" pelo Intent.
        btClassificacao = (Button) findViewById(R.id.btClassificacao);
        btClassificacao.setOnClickListener(new View.OnClickListener() {
		public void onClick(View arg0) {
			// TODO Auto-generated method stub
			Intent i = new Intent(WorldCup.this, Classificacao.class);
			WorldCup.this.startActivity(i);
			WorldCup.this.finish();
		}
        });   
 	
        //Criacao e Chamada da Tela de "Tabelas" pelo Intent. 
        btTabelas = (Button)findViewById(R.id.btTabelas);
        btTabelas.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent i = new Intent(WorldCup.this, Tabelas.class);
				WorldCup.this.startActivity(i);
				WorldCup.this.finish();
			}
		});
    
        
        //Criacao e Chamada da Tela de "Artilheiros" pelo Intent. 
        btArtilheiros = (Button)findViewById(R.id.btArtilheiros);
        btArtilheiros.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent i = new Intent(WorldCup.this, Artilheiros.class);
				WorldCup.this.startActivity(i);
				WorldCup.this.finish();
			}
		});
 	 	
 	
 	}

 	
	@Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }
}
